<%@ Page Language="C#" MasterPageFile="~/Board.Master" AutoEventWireup="true" Codebehind="MyPanel.aspx.cs" Inherits="UserInterface.MyPanel" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder" runat="server">
    <h2>Last Messages</h2>
   <asp:Repeater runat="server" ID="LastMessagesRepeater">
        <HeaderTemplate>
            <table class="list-table">
                <tr>
                    <th class="topic-title-width"><%= Resources.Resource.Topic %></th>
                    <th class="author-width"><%= Resources.Resource.Author %></th>
                    <th class="post-count-width"><%= Resources.Resource.Posts %></th>
                    <th class="last-post-width"><%= Resources.Resource.LastPost %></th>
                </tr>
        </HeaderTemplate>
        <ItemTemplate>
                <tr>
                    <td class="default-column">
                        <a href="ViewTopic.aspx?topicId=<%# Eval("Topic.Id") %>&amp;messageId=<%# Eval("Id") %>#message_<%# Eval("Id") %>"><%# Eval("Topic.Subject") %></a>
                    </td>
                    <td class="default-column"><%# Eval("Topic.StartMessage.Poster.Username") %></td>
                    <td class="default-column"><%# Eval("Topic.NumberOfReplies") %></td>
                    <td class="default-column"><a href="ViewTopic.aspx?topicId=<%# Eval("Topic.Id") %>#message<%# Eval("Topic.LastMessage.Id") %>"><img src="Templates/Default/Images/Icons/last-post.gif" alt=""><%# Eval("Topic.LastMessage.PostDateTime") %></a></td>
                </tr>
        </ItemTemplate>
        <AlternatingItemTemplate>
                <tr>
                    <td class="alternate-column">
                        <a href="ViewTopic.aspx?topicId=<%# Eval("Topic.Id") %>&amp;messageId=<%# Eval("Id") %>#message_<%# Eval("Id") %>"><%# Eval("Topic.Subject") %></a>
                    </td>
                    <td class="alternate-column"><%# Eval("Topic.StartMessage.Poster.Username") %></td>
                    <td class="alternate-column"><%# Eval("Topic.NumberOfReplies") %></td>
                    <td class="alternate-column"><a href="ViewTopic.aspx?topicId=<%# Eval("Topic.Id") %>#message<%# Eval("Topic.LastMessage.Id") %>"><img src="Templates/Default/Images/Icons/last-post.gif" alt=""><%# Eval("Topic.LastMessage.PostDateTime") %></a></td>
                </tr>
        </AlternatingItemTemplate>
        <FooterTemplate>
            </table>
        </FooterTemplate>
    </asp:Repeater>
</asp:Content>
